<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>显示和隐藏元素</title>
		<style type="text/css">
			li{
				list-style: none;
				border: 1px solid gray;
				background-color: black;
				width: 150px;
				height: 40px;
				line-height: 40px;
				text-align: center;
				color: white;
			}
			.listdisplay{
				display: block;
			}
			.listVisibility{
				visibility: hidden;
			}
		</style>
	</head>
	<body>
		<ul>
			<li class="listVisibility">HTML基础</li>
			<li>CSS基础</li>
			<li>div+css布局</li>
			<li>JavaScript基础</li>
		</ul>
		<ul>
			<li class="listdisplay">HTML基础</li>
			<li>CSS基础</li>
			<li>div+css布局</li>
			<li>JavaScript基础</li>
		</ul>
	</body>
</html>
